package ch.sysventory.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import lombok.Data;

@Data
@XStreamAlias("OSInformation")
public class OSInformation {
	
	private String osName;
	private String osArchitecture;
	private String osVersion;
	private String date;
	private String time;
	public OSInformation(){
		
		
		Date currentDate = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat( "yyyy-MM-dd" );
		SimpleDateFormat timeFormat = new SimpleDateFormat("HH:mm:ss ");
		date =  dateFormat.format(currentDate); 
		time =  timeFormat.format(currentDate); 

	}
}
